from django.shortcuts import render
from django.http import HttpResponseRedirect,JsonResponse,HttpResponse

from Lion.database import *
# Create your views here.


def redis_cluster_select(request):
    return render(request, 'service/rediscluster.html', 
                {"loginuser":request.user, "rediscluster":rediscluster, "redistag":rediscluster[0].get("ID")}
            )
    #return JsonResponse({"status":200})

def redis_cluster_del(request):
    pass

def redis_cluster_edit(request):
    pass

def redis_cluster_add(request):
    pass

    
def redis_info(request, id):
    return render(request, 'service/redisinfo.html', {"loginuser":request.user, })
